knitr::opts_chunk$set(echo = FALSE)

The first step (after installing the package) is to load the library, along with the library dplyr.

library(aimsir17)
library(dplyr)

There are two datasets that can be used. The first is observations

observations

To get see all the variables, use the glimpse() function.

glimpse(observations)

The following variables are recored for each observation:

The second data set is stations, which can be linked to observations via the the variable station

stations %>% print(n=25)

The following variables are recored for each station:

A summary of all the observations can be viewed using dplyr.

observations %>% 
  group_by(station) %>% 
  summarise(TotalRecords=n()) %>%
  print(n=25)

A summary of the overall data set can also be viewed. From the summaries, it can be seen that there are s very small number of missing values in the data set.

summary(observations)


JimDuggan/aimsir17 documentation built on Aug. 22, 2020, 9:46 p.m.